<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<table
  class="table table-bordered table-striped responsive-utilities table-hover">
  <thead>
    <tr>
      <th colspan="12">被保人信息</th>
    </tr>
    <tr>
      <th>序号</th>
      <th>姓名</th>
      <th>证件类型</th>
      <th>证件号</th>
      <th>出生日期</th>
      <th>性别</th>
      <th>航班号</th>
      <th>保险起期</th>
      <th>保险到期</th>
      <th>手机号码</th>
      <th>电子邮箱</th>
      <th>保单号</th>
      <th>保单状态</th>
    </tr>
  </thead>
  <tbody>
    <c:forEach var="policyInfo" items="${policyInfoList}" varStatus="xh">
      <tr>
        <td>${xh.count}</td>
        <td>${policyInfo.policyInsuredName}</td>
        <td>${policyInfo.policyInsuredCredentialType}</td>
        <td>${policyInfo.policyInsuredCredentialNo}</td>
        <fmt:formatDate var="policyInsuredBirth"
          pattern="yyyy-MM-dd"
          value="${policyInfo.policyInsuredBirth}" />
        <td>${policyInsuredBirth}</td>
        <td>${policyInfo.policyInsuredGender}</td>
        <td>${policyInfo.policyFlightNo}</td>
        <fmt:formatDate var="policyBegin" pattern="yyyy-MM-dd HH:mm:ss"
          value="${policyInfo.policyBegin}" />
        <td>${policyBegin}</td>
        <fmt:formatDate var="policyEnd" pattern="yyyy-MM-dd HH:mm:ss"
          value="${policyInfo.policyEnd}" />
        <td>${policyEnd}</td>
        <td>${policyInfo.policyInsuredTel}</td>
        <td>${policyInfo.policyInsuredEmail}</td>
        <td>${policyInfo.policyNo}</td>
        <td>${policyInfo.statusDesc}</td>
      </tr>
    </c:forEach>
  </tbody>
</table>